/*!
\copyright  Copyright (c) 2023 Qualcomm Technologies International, Ltd.
            All Rights Reserved.
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\brief      Sync start A2DP configration parameters.
 
It is made public because for the time being it is shared with the code outside of this module.
 
*/

#ifndef SYNC_START_A2DP_CONFIG_H_
#define SYNC_START_A2DP_CONFIG_H_


/*@{*/

/* Synchronisation interval (in msec) for audio sync source stream.*/
#define AUDIO_SYNC_MS_INTERVAL (300)

/* MTU for audio sync source stream. It should be multiple of audio
 * sync sample (6 bytes). It has been set to 48 in order to fit the
 * the source stream packet in 2-DH1 (56 bytes) radio packet which
 * also contains 2 byte header and 4 bytes L2CAP header.
 */
#define AUDIO_SYNC_PACKET_MTU (48)

/*! \brief Timeout for A2DP Data Sync event (in milliseconds) */
#define A2DP_MIRROR_DATA_SYNC_IND_TIMEOUT_MS  (100)

/*! After starting A2DP mirroring, the maximum time to wait (in milliseconds) for a
    #MESSAGE_MORE_DATA before reverting to unsynchronised primary/secondary start */
#define A2DP_MIRROR_MESSAGE_MORE_DATA_TIMEOUT_MS (750)

/*! When the primary is in mode MIRROR_PROFILE_A2DP_START_PRIMARY_SYNC_UNMUTE
    the secondary sends a message informing the primary of the instant at
    which to unmute the output - the secondary will also unmute its output at
    this instant. If for some reason the unmute message is not received from the
    secondary, the primary needs to unmute after a timeout. */
#define A2DP_MIRROR_SYNC_UNMUTE_TIMEOUT_MS D_SEC(1)

/*@}*/

#endif /* SYNC_START_A2DP_CONFIG_H_ */
